package com.mnb.base.controller;

import com.mnb.base.entity.StRiverR;
import com.mnb.base.service.StRiverRService;
import com.mnb.common.utils.R;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * (ST_RIVER_R)表控制层
 *
 * @author xxxxx
 */
@RestController
@RequestMapping("/st_river_r")
public class StRiverRController {
    /**
     * 服务对象
     */
    @Resource
    private StRiverRService stRiverRService;


    @RequestMapping("/getList")
    public R getList(StRiverR stRiverR) {
        return stRiverRService.getList(stRiverR);
    }
    @RequestMapping("/getLineData")
    public R getLineData(StRiverR stRiverR) {
        return stRiverRService.getLineData(stRiverR);
    }



    @RequestMapping("/insert")
    public R insert(StRiverR stRiverR) {
        return stRiverRService.insert(stRiverR);
    }

    @RequestMapping("/update")
    public R update(StRiverR stRiverR) {
        return stRiverRService.update(stRiverR);
    }

    @RequestMapping("/delete")
    public R delete(@RequestBody List<StRiverR> list) {
        return stRiverRService.delete(list);
    }

    @RequestMapping("/getWtypeList")
    public R getWtypeList(StRiverR stRiverR) {
        return stRiverRService.getWtypeList(stRiverR);
    }

}
